package com.lovo.project.enums;

import lombok.Getter;

/**
 * @title 角色权限状态枚举类
 * @author: chenqiang
 * @date: 2020/11/4 14:24
 */
@Getter
public enum RolePermissionEnum {
    /**添加角色权限异常*/
    PRODUCT_ADD_ENUM(5401,"添加商品异常"),
    /**修改角色权限异常*/
    PRODUCT_Update_ENUM(5402,"修改商品异常"),
    /**查询角色权限异常*/
    PRODUCT_Find_ENUM(5403,"查询商品异常"),
    /**删除角色权限异常*/
    PRODUCT_DELETE_ENUM(5404,"删除商品异常");

    /**枚举状态码*/
    private int code;
    /**状态信息*/
    private String msg;

    RolePermissionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
